package com.fc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fc.entity.base.BaseEntity;
import com.fc.entity.base.IsUseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 产品表
 * </p>
 *
 * @author
 * @since 2024-11-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("product")
@Schema(name = "Product对象", description = "产品表")
public class Product extends IsUseEntity {
    @Schema(title = "产品名称")
    private String name;

    @Schema(title = "产品价格")
    private BigDecimal price;

    @Schema(title = "库存数量")
    private Integer stock;

    @Schema(title = "产品封面")
    private String image;

    @Schema(title = "描述")
    private String description;
}
